package org.terramagnet.pdmviewer.parser;

import java.util.LinkedHashMap;
import java.util.Map;

public class PDMKey extends PDMObject{

	private String id;
	private String name;
	private String code;
	private String constraintName;
	private final Map<String, PDMColumn> columns = new LinkedHashMap<>();

	/**
	 * @return the id
	 */
	@Override
	public String getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the code
	 */
	public String getCode() {
		return code;
	}

	/**
	 * @param code the code to set
	 */
	public void setCode(String code) {
		this.code = code;
	}

	/**
	 * @return the constraintName
	 */
	public String getConstraintName() {
		return constraintName;
	}

	/**
	 * @param constraintName the constraintName to set
	 */
	public void setConstraintName(String constraintName) {
		this.constraintName = constraintName;
	}

	/**
	 * @return the columns
	 */
	public Map<String, PDMColumn> getColumns() {
		return columns;
	}

	@Override
	public String toString() {
		return "PDMKey{" + "id=" + id + ", name=" + name + ", code=" + code + ", constraintName=" + constraintName + '}';
	}
}
